import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Crawlmanage from '@/pages/CrawlManage'
import CrawlEditor from '@/components/CrawlEditor'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/task',
      name: 'Crawlmanage',
      component: Crawlmanage
    },
    {
      path: '/taskAdd',
      name: 'CrawlEditor',
      component: CrawlEditor
    }
  ]
})
